﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace XiaoYuStock.Model.Models
{
   public partial class HistoryData
    {

       private static String[] Weeks = new string[] { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" };

       [NotMapped]
       public string WeekDay
       {
           get {
               DateTime d = Convert.ToDateTime(this.CurrentDate);

               return Weeks[(int)d.DayOfWeek];
           }
       }

      
    }
}
